
#ifndef SPOT_TEST_PROJECT
#define SPOT_TEST_PROJECT

#include "TaskModule.h"
#include "../GlobalParameters.h"
#include "Rasp_SpotNJ.h"

extern "C" BaseObject *createSpot();
extern "C" void destroySpot(BaseObject *p);

class Spot : public TaskModule {
public:
    Spot();

    int IsSendData = 1;
    float Rgate = 74.9;
    int NJCountNum = 3;
    int RangeRangeThresholdNum = 5;
    int RangeDopplerThresholdNum = 3;
    float EleThreshold = 1.2;
    float AziThreshold = 1.2;
    int Method = 0;
    int DopplerNum = 8;
    int AziRangeThresholdNum = 0;
    float Ele = 0;
    float Azi = 0;
    float IntervalTime = 0.0368;
    float Time = 0;


    ~Spot();

    void onCompute(buffer_table_t *input, buffer_table_t *output) override;

    bool Init();

private:
    Rasp_SpotNJ rasp_spotnj;
    unsigned int m_countnum = 0;
    float Radar_time = 0;
};

#endif //SPOT_TEST_PROJECT
